﻿using XinGuanERP.Models.Vo.system;
using XinGuanERP.Utils;

namespace XinGuanERP.Services.system.IServices
{
    public interface IRoleService
    {
        List<RoleVo> GetRoleWithList(string? roleName, string? status);
        bool UpdateRole(RoleVo viewRole);
        bool DeleteRole(string Id);
        bool SetRoleStatus(string Id, string Status);
        PageResult<RoleVo> GetRoleWithPage(int page, int pageSize, string? roleName, string? status);
        List<SysMenuVo> GetSysMenuByRoleIdWithOptionTree(string roleId);
        int AssignMenu(string[] menuIds, string roleId);
    }
}
